#pragma once

#import "c:\program files\common files\system\ado\msado15.dll" \
	no_namespace rename ("EOF", "adoEOF")

#define  DB_NAME TEXT("interactive.mdb")

class CRunRecord
{
public:
	CRunRecord(void);
	~CRunRecord(void);
	_RecordsetPtr GetAllData();
	BOOL CheckDataBase();
	BOOL AddStartTime();
	BOOL AddEndTime();
	BOOL Init(const TCHAR *db_path);
	_RecordsetPtr QueryRecord(SYSTEMTIME startime, SYSTEMTIME endtime);
	_RecordsetPtr QueryRecord(COleDateTime stTime, COleDateTime endTime);
protected:
	_ConnectionPtr m_pConnection;
	_RecordsetPtr m_pRecordset;
	COleDateTime m_startime;
private:
	
};
